package cc.sjfx.sharedoc.bmob;

import org.json.JSONException;
import org.json.JSONObject;

public class FileInfo4Examination {
	private String fileName;
	private String fileType;
	private long fileSize;
	private String fileNetName;
	private String fileNetUrl;
	private boolean exist;
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public String getFileType() {
		return fileType;
	}
	public boolean isExist() {
		return exist;
	}
	public void setExist(boolean exist) {
		this.exist = exist;
	}
	public void setFileType(String fileType) {
		this.fileType = fileType;
	}
	public long getFileSize() {
		return fileSize;
	}
	public void setFileSize(long fileSize) {
		this.fileSize = fileSize;
	}
	public String getFileNetName() {
		return fileNetName;
	}
	public void setFileNetName(String fileNetName) {
		this.fileNetName = fileNetName;
	}
	public String getFileNetUrl() {
		return fileNetUrl;
	}
	public void setFileNetUrl(String fileNetUrl) {
		this.fileNetUrl = fileNetUrl;
	}
	public JSONObject file2Json() throws JSONException {
		JSONObject jsonObject=new JSONObject();
		jsonObject.put("fileName", fileName);
		jsonObject.put("fileSize", fileSize);
		jsonObject.put("fileNetName", fileNetName);
		jsonObject.put("fileType", fileType);
		jsonObject.put("fileNetUrl", fileNetUrl);
		return jsonObject;
	}
}
